package entity;

import lombok.Data;

/**
 * @Author 宋伟宁
 * @Date 2024/1/5
 * @Version 1.0
 **/
@Data
public class Result<T> {

    private Integer code;
    private String message;

    private Boolean flag;
    private T data;

    public Result() {
    }

    public Result(Integer code, String message, Boolean flag, T data) {
        this.code = code;
        this.message = message;
        this.flag = flag;
        this.data = data;
    }

    public Result(Integer code, String message, Boolean flag) {
        this.code = code;
        this.message = message;
        this.flag = flag;

    }
}
